package com.leoman.dao;

import com.leoman.entity.VersionInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * VersionInfoDao
 * Created by 涂奕恒 on 2017/2/6 0006 17:12.
 */
public interface VersionInfoDao extends JpaRepository<VersionInfo, Integer>, JpaSpecificationExecutor<VersionInfo> {

    @Query("select a from VersionInfo a where a.num = ?1")
    VersionInfo findOneByNum(String num);
}